package com.naive.imperative.program.operations;

import com.naive.imperative.program.BinaryOperation;
import com.naive.imperative.program.ExecutionContext;


public class Add extends BinaryOperation<Double, Double> {

	@Override
	public Double evaluate(ExecutionContext x) {
		return getOperandA().evaluate(x).doubleValue() 
				+ getOperandB().evaluate(x).doubleValue();
	}

}
